package com.ucl.dao.supplier;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.ucl.model.entity.supplier.Supplier;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Options;

public interface SupplierMapper extends BaseMapper<Supplier> {

    @Insert({ "insert into supplier(name, url, parent_id, create_time) values(#{name}, #{url}, #{parentId},#{createTime, jdbcType=TIMESTAMP})" })
    @Options(useGeneratedKeys = true, keyProperty = "id")
    int insertSupplier(Supplier supplier);
}
